package com.codeplex.tdmg4mc;

import org.lwjgl.input.Keyboard;

import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
import net.minecraftforge.event.entity.living.LivingFallEvent;

public class TDMGEventHandler
{
	
	@SubscribeEvent
	public void livingFall(LivingFallEvent event)
	{
		if(event.entityLiving instanceof EntityPlayer)
		{
			EntityPlayer player=(EntityPlayer)event.entityLiving;
			if(player.getCurrentArmor(1)!=null&&player.getCurrentArmor(1).getItem()==TDMG.legs)
			{
				event.distance/=4;
			}
		}
	}
}
